﻿using com.guojin.core.io.message;
using com.guojin.core.io;

namespace com.guojin.mj.net.message.login
{
    public class ChangePassword : Message
    {
        public static int TYPE = 7;
        public static int ID = 153;
        private string phone;
        private string Code;
        private string Password;
        public static ChangePassword Create(string p,string c,string ps)
        {
            ChangePassword fp = new ChangePassword();
            fp.phone = p;
            fp.Code = c;
            fp.Password = ps;
            return fp;
        }
        public void decode(core.io.Input _in)
        {

        }

        public void encode(Output _out)
        {
            _out.writeString(phone);
            _out.writeString(Code);
            _out.writeString(Password);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "phone" + phone;
        }
    }
}
